package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author Dugen.Zhu
 * @date 2020-01-02 15:13
 */
public interface OrderSettingDao {

    int findByOrderDate(Date orderDate);

    void add(OrderSetting orderSetting);

    void update(OrderSetting orderSetting);

    List<OrderSetting> findOrderSettingByMonth(@Param("data") String data);

    void setNumberByDate(OrderSetting orderSetting);

    //更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

    //根据预约日期查询预约设置信息
    OrderSetting findOneByOrderDate(Date orderDate);
}
